<template>
  <div>
    <el-form ref="form" :model="form" label-width="80px" style="display: flex;">
      <el-form-item label="姓名">
        <el-input v-model="form.name" placeholder="请输入姓名" style="width: 250px;"></el-input>
      </el-form-item>
      <el-form-item label="账号">
        <el-input v-model="form.name" placeholder="请输入账号" style="width: 250px;"></el-input>
      </el-form-item>
      <el-form-item label="手机号">
        <el-input v-model="form.name" placeholder="请输入手机号" style="width: 250px;"></el-input>
      </el-form-item>
    </el-form>
    <el-button size="small" icon="el-icon-search">查询</el-button>
    <el-button size="small" icon="el-icon-refresh-right">重置</el-button>
    <el-button size="small" style="background-color: #ccc; color: white">下载工资条模版</el-button>
    <el-button size="small">上传</el-button>
    <el-button size="small" style="background-color: rgb(212, 169, 233); float:right;color: white;" icon="el-icon-circle-plus-outline" @click="add_money">新增工资条</el-button>
  <!-- 表格 -->
  <el-table :data="tableData" border style="width: 100%;margin-top: 30px;">
    <el-table-column fixed prop="date" label="id" align="center"> </el-table-column>
    <el-table-column prop="name" label="姓名" align="center"> </el-table-column>
    <el-table-column prop="province" label="出勤" align="center"> </el-table-column>
    <el-table-column prop="city" label="矿工" align="center"> </el-table-column>
    <el-table-column prop="address" label="请假" align="center"> </el-table-column>
    <el-table-column prop="zip" label="基本工资" align="center"> </el-table-column>
    <el-table-column prop="zip" label="岗位工资" align="center"> </el-table-column>
    <el-table-column fixed="right" label="操作" align="center">
      <template slot-scope="scope">
        <el-button icon="el-icon-delete" style="background-color:red; color: white;padding: 5px 6px;"  @click="handleClick(scope.row)" type="text" size="small">删除</el-button>
        <el-button icon="el-icon-edit" style="background-color:rgb(103, 162, 239); color: white;padding: 5px 6px;" type="text" size="small">修改</el-button>
      </template>
    </el-table-column>
  </el-table>
  <!-- 弹出 -->
  <Mone_lo ref="aa" />
</div>  
</template>
<script>
  import Mone_lo from './Money_loading.vue'
export default {
  components:{
  Mone_lo,
  },
  data() {
    return {
        tableData:[
        {
            date:1,
            name:2,
        }
    ],
      form: {
        name: ''
      }
    }
  },
  methods: {
      add_money(){
      this.$refs.aa.dialogFormVisible=true
      },
    },
}
</script>
